<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="<?php echo $smit_lang; ?>" lang="<?php echo $smit_lang; ?>" xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $smit_dir; ?>">
	<head>
		<title><?php echo $title; ?> <?php echo $config['board_title']; ?></title>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<link rel="shortcut icon" href="<?php echo $vars['root_url']; ?>favicon.ico" />

		<?php echo $output->css('style', 1); ?>

		<?php echo $output->css('form', 1); ?>

		<?php echo $output->js('jquery'); ?>

		<?php echo $output->js('functions'); ?>

		<?php echo $output->js('functions', 1); ?>
		
		<meta name="x-auth-token" id="x-auth-token" content="7544" />

		<!--hook.head-->
	</head>
	<body>
		<div id="top">
		<!--
			<a href="#" title="test">Smit</a>
			<a href="#" class="selected" title="test">Smitforums</a>
			<a href="#" title="test">Smitstyles</a>
			<a href="#" title="test">Downloads</a>
			<a href="#" title="test">Docs</a> -->
			<?php echo smit_link('http://smit.sf.net', 'Smit'); ?>
			<?php echo smit_link('http://smit.sf.net/community/', 'SmitCommunity', array('class' => 'selected')); ?>
			<?php echo smit_link('http://smit.sf.net/docs/', 'Docs'); ?>
			<?php echo smit_link('http://smit.sf.net/downloads/', 'Downloads'); ?>
			&mdash;
			<?php echo smit_link(array('search', 'forum'), smit_lang('global.search')); ?>
			<?php echo smit_link(array('help', 'forum'), smit_lang('global.help')); ?>
		</div>
		<div id="swixs-wrapper">
			<img src="<?php echo $mediaurl; ?>logo.png" alt="Powered by Swixs" id="logo" />
			<div class="main">
				<div id="user-controls">
					<ul class="user-tabs">
						<?php if(smit_is_user()): ?>
						<li>
							<?php echo smit_get_username(); ?>
						</li>
						<?php else: ?>
						<li><?php echo smit_lang('global.greeting'); ?></li>
						<?php endif; ?>
						<!--<li><a href="#" onclick="$('#login').slideToggle(); return false;">Login</a></li>-->
						<?php if(smit_is_user()): ?>
						<li>
						<?php echo smit_link(array('core', 'logout'), smit_lang('global.logout'))?>
						</li>
						<?php else: ?>
						<li>
						<?php echo smit_link(array('core', 'login'), smit_lang('global.login'))?>
						</li>
						<li>
						<?php echo smit_link(array('core', 'register'), smit_lang('global.register'))?>
						</li>
						<?php endif; ?>
					</ul>
					<form action="#" method="post">
					<ul class="user-tabs" id="login" style="position: relative;<?php echo $smit_right; ?>: 20px;display: none;">
						<li class="nohover"><input type="text" name="username" value="Username" /></li>
						<li class="nohover"><input type="password" name="password" value="Password" /></li>
						<li class="nohover"><input type="submit" name="submit" value="Login" /></li>
					</ul>
					</form>
					<?php if(smit_is_user()): ?>
					<ul class="user-tabs" style="float: <?php echo $smit_right; ?>;margin-<?php echo $smit_right; ?>: 20px;">
						<li><?php echo smit_link(array('usercp'), smit_lang('global.userpanel')); ?></li>
						<li><?php echo smit_link(array('usercp', 'conversations'), smit_lang('global.conversations')); ?> (0)</li>
					</ul>
					<?php endif; ?>
				</div>
			</div>
			<?php echo $content; ?>
			<div id="footer">
				<p>Powered by <a href="http://smit.sf.net/" title="Powered By Smit">SmitBoard</a> Matterhorn &copy; 2009 The Smit Team</p>
				<p>[<?php echo $smit_num_queries; ?> Queries][Execution: <?php echo $smit_exec_time; ?>][Memory Usage: <?php echo $smit_memory_usage; ?> MB]</p>
			</div>
		</div>
	</body>
</html>